/**
 * Created by ZHOUTM2 on 8/24/2016.
 */
/*
angular.module('merchants').service('merchantService', function ($http,$rootScope) {
    var service ={
        merchantInfo : function () {
            var req={
                method:"GET",
                url:"merchants/loadMerchant"
            };
            $http(req)
                .then(function (res) {
                    var type = null;
                    switch (res.data.type){
                        case 1:
                            type = 'Fast Food'
                            break;
                        case 2:
                            type = 'Special Food'
                            break;
                        case 3:
                            type = 'Western Food'
                            break;
                        case 4:
                            type = 'Refreshment'
                            break;
                        case 5:
                            type = 'Dessert'
                            break;
                        case 6:
                            type = 'Fruit'
                            break;
                    }
                    res.data.types = type
                    $rootScope.merchant = res.data
                });
        }
    };
    return service;
});
*/

/*
angular.module('order_complaint').filter('convertComplaintStatus', function () {
    return function (status) {
        switch (status){
            case 0 : return 'Pending';
            case 1 : return 'Dismiss complaint';
            case 2 : return 'Deduct deposit';
            case 3 : return 'Block Merchant';
        }
    }
});*/
